From 85eff334c642c6685a4a4c03a3616bd071f5b898 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 1 Jun 2007 21:22:34 +0000 Subject: [PATCH] Track geocache placer ID on read from GPX/PQs. --- gpsbabel/defs.h | 1 + gpsbabel/gpx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index 7c19a356d..62840196f 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -218,6 +218,7 @@ typedef struct { time_t exported; time_t last_found; char *placer; /* Placer name */ + int placer_id; /* Placer id */ char *hint; /* all these UTF8, XML entities removed, May be not HTML. */ utf_string desc_short; utf_string desc_long; diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 70070d163..7d307daac 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -649,6 +649,10 @@ gpx_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr) case tt_cache_desc_short: tag_cache_desc(attr); break; + case tt_cache_placer: + if (0 == strcmp(attr[0], "id")) { + wpt_tmp->gc_data.placer_id = atoi(attr[1]); + } default: break; } -- 2.30.2